const express = require('express')
const router = express.Router()
const {
  getNotesHandler,
  postNewNoteHandler,
  deleteNoteHandler,
} = require('../../controllers/notesController')

router.get('/', getNotesHandler)

router.post('/new-note', postNewNoteHandler)

router.delete('/:id', deleteNoteHandler)

module.exports = router
